package com.jic.manager.mapper;

import com.jic.manager.entity.CmsTemplateVariable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 模板变量
 * @author : 
 * @email : 
 * @since : 2020-03-05 12:01:22
 * @version : v1.0.0
 */
@Mapper
public interface  CmsTemplateVariableMapper {

    long insert(CmsTemplateVariable cmsTemplateVariable);

    long delete(Long id);

    long update(CmsTemplateVariable cmsTemplateVariable);

    CmsTemplateVariable queryByPrimaryKey(Long id);

    List<CmsTemplateVariable> query(CmsTemplateVariable cmsTemplateVariable);

    List<CmsTemplateVariable> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("cmsTemplateVariable") CmsTemplateVariable cmsTemplateVariable);

    long queryPageCount(CmsTemplateVariable cmsTemplateVariable);

    /**
     * CMS_TEMPLATE_VARIABLE根据id删除数据
     * @param cmsTemplateVariable 入参实体类
     */
    int deleteByPrimaryKey(CmsTemplateVariable cmsTemplateVariable);


    /**
     * CMS_TEMPLATE_VARIABLE插入数据
     * @param cmsTemplateVariable 入参实体类
     */
    int insertSelective(CmsTemplateVariable cmsTemplateVariable);

    /**
     * CMS_TEMPLATE_VARIABLE根据主键查询数据
     * @param cmsTemplateVariable 入参实体类
     */
    CmsTemplateVariable selectByPrimaryKey(CmsTemplateVariable cmsTemplateVariable);

    /**
     * CMS_TEMPLATE_VARIABLE分页查询总记录数
     * @param cmsTemplateVariable 入参实体类
     */
    long listPageCount(CmsTemplateVariable cmsTemplateVariable);

    /**
     * CMS_TEMPLATE_VARIABLE根据主键查询数据
     * @param cmsTemplateVariable 入参实体类
     */
    List<CmsTemplateVariable> listCmsTemplateVariableRecordPagination(int pageIndex, int pageSize, CmsTemplateVariable cmsTemplateVariable);

    /**
     * CMS_TEMPLATE_VARIABLE查询数据
     * @param cmsTemplateVariable 入参实体类
     */
    List<CmsTemplateVariable>  selectBySelective(CmsTemplateVariable cmsTemplateVariable);

    /**
     * CMS_TEMPLATE_VARIABLE根据表对象数据修改数据
     * @param cmsTemplateVariable 入参实体类
     */
    int updateByPrimaryKey(CmsTemplateVariable cmsTemplateVariable);

    /**
     * CMS_TEMPLATE_VARIABLE根据表对象数据修改数据
     * @param cmsTemplateVariable 入参实体类
     */
    int updateByPrimaryKeySelective(CmsTemplateVariable cmsTemplateVariable);
}